-- GENERATED SPELL FOR [Gnarlpine Pathfinder] --


function spell0_2012(pUnit, Event) --@Gnarlpine Vengeance,Self--
pUnit:FullCastSpellOnTarget(5628,pUnit)
pUnit:RegisterEvent('Sorts_2012', 6299, 1)
end

function spell1_2012(pUnit, Event) --@Wrath,n/a--
pUnit:FullCastSpellOnTarget(9739,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2012', 2000, 1)
end

function Sorts_2012(pUnit, Event)
local choix_sorts_2012 = math.random(0, 1)
if choix_sorts_2012 == 0 then
pUnit:RegisterEvent('spell0_2012', 1, 1)
end
if choix_sorts_2012 == 1 then
pUnit:RegisterEvent('spell1_2012', 1, 1)
end
end

function mob2012_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2012', math.random(1500, 3000), 1)
end

function mob2012_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2012_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2012_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2012, 1, 'mob2012_Action')
RegisterUnitEvent(2012, 2, 'mob2012_Leave')
RegisterUnitEvent(2012, 3, 'mob2012_Kill')
RegisterUnitEvent(2012, 4, 'mob2012_Die')
